import request from 'utils/request'


export const getArticles = (params:any) => {
    return request ({
        url:"/app/v1_1/articles",
        method:"GET",
        params
    })
}


export const getArticlesDetail = (id:number) => {
    return request ({
        url:`/app/v1_0/articles/${id}`,
        method:"GET"
    })
}

export const onInputSearch = (params:Object) => {
    return request ({
        url:"/app/v1_0/suggestion",
        method:"GET",
        params
    })
}

export const onSearchData = (params:Object) => {
    return request ({
        url:"/app/v1_0/search",
        method:"GET",
        params
    })
}